using System;
using UnityEngine;

[Serializable]
public class scene1 : MonoBehaviour
{
	public string nextLevel;

	public virtual void OnTriggerEnter(Collider other)
	{
		if (other.gameObject.name == "Exit")
		{
			Application.LoadLevel("blank 3");
			return;
		}
		if (nextLevel == "win")
		{
			ButtonManager.instance.bofang.gameObject.SetActive(false);
			ButtonManager.instance.speed.gameObject.SetActive(false);
			ButtonManager.instance.EndPanel.SetActive(true);
			Application.LoadLevel(nextLevel);
			return;
		}
		Application.LoadLevel(nextLevel);
	}

	public virtual void Main()
	{
	}
}
